package main

import "fmt"

type students struct {
	id   int64
	name string
}

func newStudents(id int64, name string) *students {
	return &students{id: id, name: name}
}

type studentManger struct {
	allStudents map[int64]*students
}

func (s studentManger) showStudent() {
	for _, i2 := range allStudent {
		fmt.Println(i2)
	}
}
func (s studentManger) addStudent() {
	var (
		id   int64
		name string
	)
	fmt.Println("请输入的学号")
	_, _ = fmt.Scanln(&id)
	fmt.Println("请输入的姓名")
	_, _ = fmt.Scanln(&name)
	newStu := newStudents(id, name)
	s.allStudents[newStu.id] = newStu
}
func (s studentManger) deleteStudent() {

}
func (s studentManger) editStudent() {

}
func main() {

}
